<?php

namespace App\Service\Work;

use App\Models\Works\PraiseModel;

class PraiseService
{
    //获得点赞详情
    public static function getPraise(array $data)
    {
        return PraiseModel::where($data)
            ->first();
    }

    //增加点赞详情
    public static function addPraise(array $data)
    {
        if(PraiseModel::insert($data)){
            return true;
        }
        return false;
    }
}